package com.xiaomi.dao;


import com.xiaomi.entity.Address;

import java.util.List;

/**
 * @author jy
 * @Description: TODO
 * @date 2021/5/25
 */
public interface AddressDao {

    List<Address> showAddressesByUid(int uid) throws Exception;

    int addAddress(Address address) throws Exception;

    int delete(int aid) throws Exception;

    int setDefaultByUid(int uid) throws Exception;

    int setDefaultByAid(int aid) throws Exception;

    int update(Address address) throws Exception;
}
